#include <vector>

struct Interval{
	int start;
	int end;

	bool contains(int x) const{
		if (x >= start && x <= end)
			return true;
		return false;
	}

};

inline bool contains(const std::vector<Interval> vec, int x){
	for (const auto& elem : vec){
		if (elem.contains(x))
			return true;
	}
	return false;
}